
export default {
  data () {
    return {
      panelVisible: false
    }
  },
  props: {
    id: {
      type: [String, Number],
      default: ''
    },
    info: {
      type: Object,
      default () {
        return {}
      }
    }
  },
  methods: {
    closePanel () {
      this.panelVisible = false
      this.$emit('on-cancel')
    },
    openPanel () {
      this.panelVisible = true
    }
  }
}
